package com.tuo51.childcare.service;

import com.tuo51.childcare.domain.ptest.PTestCertificate;
import com.tuo51.childcare.domain.ptest.PTestItem;
import com.tuo51.childcare.domain.vo.PTestItemAnswerSheetItemVO;
import com.tuo51.childcare.domain.vo.PTestItemVO;
import com.tuo51.evaluate.domain.childrens.Children;
import com.tuo51.core.domain.staffs.Staff;
import com.tuo51.foudation.query.base.PagerQuery;
import org.springframework.data.domain.Page;


import java.util.List;
import java.util.Map;

public interface PTestService {

    PTestItem editItem(PTestItemVO pTestItemVO);
    boolean deleteItem(String itemId);

    PTestItem getTestItem(String itemId);

    Page<PTestItem> getTestItem(String categoryId, Integer type, Integer month, Integer forDay, String searchBy, PagerQuery pagerQuery);

    List<PTestItem> getDailyTips(String categoryId, Integer month, Integer daily);

    List<PTestItem> getDailyTest(String categoryId, Integer month, Integer daily);

    Map reportDailyTest(String categoryId, Integer month, Integer daily);

    PTestCertificate parseTestAnswer(Staff staff,
                                    Children children,
                                    String relation,
                                    List<PTestItemAnswerSheetItemVO> answerSheet);

    PTestCertificate getPTestCertificate(String certificateId);
}
